<%--
    Document   : view fragment for post categories
    Created on : Mar 10, 2014, 10:54:45 PM
    Author     : Anton Strack
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<div class="panel panel-group">
    <c:if test="${postRelationships != null}">
        <p>
        <c:forEach items="${postRelationships}" var="postRelationship" >
            <a href="${req.contextPath}?action=view&resource=relationship&id=${postRelationship.id}" title="${postRelationship.description}">${postRelationship.name}</a>
        </c:forEach>
        </p>
    </c:if>
    <p class="divider"></p>
    <p><a href="${req.contextPath}?action=add&resource=relationship&for=${fn:toLowerCase(bean.getDerivedValue('ResourceTypeName'))}&id=${bean.id}">Add Relationships to ${bean.name}</a></p>
</div>

